<?php $pages = $this->paginator->getPages() ?>
<?php if($pages->pageCount > 1): ?>
    <div class="paginator">
    <?php if($pages->current != $pages->first): ?>
        <a href="<?php echo $helper->url(array('page' => $pages->first), true, false) ?>"><?php echo $helper->translate('Erste') ?></a>
    <?php endif; ?>

    <?php if($pages->current != $pages->first): ?>
        <a href="<?php echo $helper->url(array('page' => $pages->previous), true, false) ?>"><?php echo $helper->translate('Vorherige') ?></a>
    <?php endif; ?>

    <?php foreach($pages->pagesInRange AS $id): ?>
        <?php if($id == $pages->current): ?>
            <?php echo $id ?>
        <?php else: ?>
            <a href="<?php echo $helper->url(array('page' => $id), true, false) ?>"><?php echo $id ?></a>
        <?php endif; ?>
    <?php endforeach; ?>

    <?php if($pages->current != $pages->last): ?>
        <a href="<?php echo $helper->url(array('page' => $pages->next), true, false) ?>"><?php echo $helper->translate('Naechste') ?></a>
    <?php endif; ?>

    <?php if($pages->current != $pages->last): ?>
        <a href="<?php echo $helper->url(array('page' => $pages->last), true, false) ?>"><?php echo $helper->translate('Letzte') ?></a>
    <?php endif; ?>
    </div>
<?php endif; ?>